*{
    margin: 0;
    padding: 0;
}
a{
    text-decoration: none;
}
li{
    list-style: none;
}
img{
    vertical-align: middle;
    border: none;
}

.top{
    height: 48px;
    background: #333;

}
.top .top-main{
    width: 1080px;
    height: 48px;
    margin: 0 auto;
    position: relative;
}
.top ul{
    float: right;
    line-height: 48px;
}
.top ul li{
    float: left;
    margin-right: 15px;
    color: #666;
    position: relative;
}
.top ul li a{
    color:  #e7e7e7;
    font-size: 14px;
}
.top ul li a:hover{
    color: #fff;
}
.top ul li:nth-of-type(5) a{
    padding-left: 30px;
    display: inline-block;
    position: relative;
}
.top ul li:nth-of-type(5) a::before{
    content: "";
    position: absolute;
    top: 9px;
    left: 0;
    width: 30px;
    height: 30px;
    background: url(https://www.xiaomiyoupin.com/static3/media/yp-icons.7c45b9c9.png) no-repeat;
    background-position: 0 -964px;
}
.top ul li:nth-of-type(7){
    padding-right: 30px;
    margin-right: 0;
}
.top ul li:nth-of-type(7)::after{
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: 9px;
    background: url(https://www.xiaomiyoupin.com/static3/media/yp-icons.7c45b9c9.png) no-repeat;
    background-position: 0 -1678px;
}

.top .top-main .li-menu{
    width: 160px;
    height: 0px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 0 2px #bbb;
    position: absolute;
    right: 10px;
    top: 48px;
    transition: 0.2s;
    z-index: 20;
}
.top .top-main .li-menu span{
    width: 160px;
    height: 35px;
    display: block;
    text-align: center;
    line-height: 35px;
    font-size: 14px;
    cursor: pointer;
}
.top .top-main .li-menu span:hover{
    background-color: #845f3f;
    color: #fff;
}
.mask{
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    position: fixed;
    z-index: 100;
    top: 0px;
    display: none;
}
.top .top-mask{
    width: 370px;
    height: 190px;
    padding: 50px 40px 40px;
    box-sizing: content-box;
    background: #fff;
    position: fixed;
    left: calc(50% - 240px);
    top: 120px;
    z-index: -1;
    opacity: 0;
    transition: 0.3s;
}
.top .top-mask span{
    position: absolute;
    width: 13px;
    height: 13px;
    background: url(https://www.xiaomiyoupin.com/static3/media/yp-icons.7c45b9c9.png) no-repeat;
    background-position: 0 -135px;
    cursor: pointer;
    right: 20px;
    top:20px;
}
.top .top-mask h3{
    text-align: center;
    margin-bottom: 30px;
    font-weight: normal;
}
.top .top-mask span:hover{
    background-position: 0 -118px;
}
.top .top-mask p{
    font-size: 14px;

}
.top .top-mask p a{
    font-size: 14px;
    color: #9f8052;
}
.top .top-mask .mask-btn{
    display: inline-block;
    width: 179px;
    height: 43px;
    border: 1px solid #845f3f;
    border-radius: 3px;
    font-size: 20px;
    text-align: center;
    margin-top: 30px;
    line-height: 43px;
}
.top .top-mask .mask-btn1{
    background-color: #845f3f;
    color: #fff;
    margin-right: 3px;
    position: relative;
}
.top .top-mask .mask-btn1 em{
    position: absolute;
    width: 181px;
    height: 45px;
    border-radius: 3px;
    background-color: rgba(255,255,255,0.5);
    left: -1px;
    top: -1px;
    opacity: 0;
    transition: 0.2s;
}
.top .top-mask .mask-btn1:hover em{
    opacity: 1;
}
.top .top-mask .mask-btn2{
    color: #845f3f;
    transition: 0.2s;
}
.top .top-mask .mask-btn2:hover{
    background: #845f3f;
    color: #fff;
}



// header

.header{
    height: 51px;
    padding-top: 20px;
    border-bottom: 1px solid #ddd;
}
.header-main{
    width: 1080px;
    height: 51px;
    margin: 0 auto;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}
.header-main .header-logo{
    width: 123px;
    height: 51px;
    float: left;
    background: url(https://www.xiaomiyoupin.com/static3/media/logo@2x.cf8cc6a8.png) no-repeat;
    background-size: 100%;
}
.header-main .header-logo a{
    display: block;
    width: 123px;
    height: 51px;
}

.header-main .header-nav{
    float: left;
    margin-left: 130px;
}
.header-main .header-nav li{
    float: left;
    line-height: 51px;
    margin-right: 32px;
}
.header-main .header-nav li a{
    font-size: 18px;
    color: #666;
}
.header-main .header-nav li a:hover{
    color: #845f3f;
}


.header-main form{
    float: right;
    position: relative;
    left: -50px;
}
.header-main form input{
    width: 246px;
    height: 32px;
    padding-left: 35px;
    padding-top: 9px;
    border: none;
    outline: none;
    border-bottom: 1px solid #ddd;
    transition: 0.2s;
}
.header-main form a{
    position: absolute;
    width: 30px;
    height: 30px;
    background: url(https://www.xiaomiyoupin.com/static3/media/yp-icons.7c45b9c9.png) no-repeat;
    background-position: 0 -1474px;
    left: 0;
    bottom: 5px;
}
.header-main .shopcar{
    position: absolute;
    right: 0;
    bottom: 5px;
}
.header-main .shopcar a{
    display: block;
    width: 30px;
    height: 30px;
    background: url(https://www.xiaomiyoupin.com/static3/media/yp-icons.7c45b9c9.png) no-repeat;
    background-position: 0 -1202px;
}
.header-main .shopcar a:hover{
    background: url(https://www.xiaomiyoupin.com/static3/media/yp-icons.7c45b9c9.png) no-repeat;
    background-position: 0 -1168px;
}

// box

.box{
    width: 100%;
}
.box .container{
    width: 1080px;
    margin: 0 auto;
}
.box .container .con-top p{
    font-size: 13px;
    width: 100%;
    padding: 30px 0;
    color: #999;
}
.box .container .con-top p a{
    color: #000;
}
.box .container .con-top p a:hover{
    color:#845f3f;
}
.box .container .con-main{
    padding-top: 100px;
    padding-bottom: 200px;
}
.box .container .con-main .cart-main{
    width: 153px;
    height: 132px;
    margin: 0 auto;
    background: url(https://trade.xiaomiyoupin.com/static3/media/no-order.d09ac3d8.png) no-repeat;
    background-size: contain;
}
.box .container .con-main .cart-word{
    width: 100%;
    text-align: center;
    font-size: 14px;
    margin-top: 30px;
}
.box .container .con-main .toindex{
    text-align: center;
    margin-top: 30px;
}
.box .container .con-main .toindex a{
    display: inline-block;
    min-width: 97px;
    height: 43px;
    line-height: 41px;
    font-size: 18px;
    outline: none;
    background-color: #fff;
    border: 1px solid #000;
    cursor: pointer;
    border-radius: 3px;
    color: #000;
    transition: 0.2s;
}
.box .container .con-main .toindex a:hover{
    background-color: #845f3f;
    color: #fff;
}


// 购物车  网上借鉴

#main {
    padding: 30px 0px;
}

#cart {
    background: #FFFFFF;
    padding: 40px;
}

#cart h1 {
    line-height: 40px;
    padding: 0px 0px 10px 0px;
}

table.form {
    border-collapse: collapse;
    empty-cells: show;
    margin: 20px 0px;
    padding: 0px;
    table-layout: fixed;
    width: 100%;
}

table.form th,
table.form td {
    border-bottom: 1px solid #DDDDDD;
    padding: 15px 10px;
    text-align: left;
}

table.form {
    border-top: 3px solid #DDDDDD;
}

.goods .goods-image img {
    border: 1px solid #DDDDDD;
    float: left;
    height: 100px;
    margin: 0px 20px 0px 0px;
}

.goods .goods-information {
    float: left;
}

.goods .goods-information ul {
    color: #666666;
    font-size: 12px;
    line-height: 20px;
    margin: 10px 0px 0px 0px;
}

.price,
.amount,
#total-amount {
    color: #E00000;
}

#total-amount {
    font-size: 22px;
}

.price em,
.amount em,
#total-amount em {
    font-style: normal;
}

.combo .combo-minus,
.combo .combo-value,
.combo .combo-plus {
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    color: #333333;
    float: left;
    font-weight: bold;
    margin: 0px;
    outline: none;
    text-align: center;
}

.combo .combo-minus,
.combo .combo-plus {
    font-size: 16px;
    height: 26px;
    line-height: 26px;
    padding: 0px;
    width: 24px;
}

.combo .combo-value {
    border-left: none;
    border-right: none;
    height: 20px;
    line-height: 20px;
    padding: 2px;
    width: 40px;
}

#cart-delete {
    margin-left: 20px;
}

#settlement {
    background: #E00000;
    border: none;
    color: #FFFFFF;
    float: right;
    font-size: 16px;
    height: 40px;
    line-height: 40px;
    margin: 0px;
    outline: none;
    padding: 0px;
    width: 160px;
}

#pay{
    position: absolute;
    left: 500px;
    top: 100px;
    display: none;
    z-index: 333;
}
#pay img{
    width: 292px;
    height: 408.8px;
    display: inline-block;
    margin-right: 50px;
}
#pay #shut{
    font-size: 40px;
    position: absolute;
    bottom: -150px;
    left: 250px;
    width: 100px;
    height: 100px;
    cursor: pointer;
    border: 1px solid brown;
    background: chocolate;
    color: #fff;
    outline: none;
}


// footer  底部

.footers{
    margin-top: 60px;
    padding: 45px 0;
    height: 45px;
    line-height: 23px;
    border-top: 1px solid #e7e7e7;
    background-color: #fff;
    color: #666;
    float: left;
    width: 100%;
}

.footers .footer-main{
    width: 1080px;
    margin: 0 auto;
}
.footers .footer-main .footer-left{
    width: 123px;
    height: 45px;
    float: left;
}
.footers .footer-main .footer-left img{
    width: 123px;
    height: 45px;
}

.footers .footer-main .footer-right{
    float: right;
    padding-right: 138px;
    position: relative;
}
.footers .footer-main .footer-right p{
    font-size: 12px;
}
.footers .footer-main .footer-right p img{
    width: 15px;
    height: 15px;
}
.footers .footer-main .footer-right p a{
    color: #666;
    margin: 5px;
}
.footers .footer-main .footer-right p a:hover{
    color: brown;
}
.footers .footer-main .footer-right .pic{
    position: absolute;
    width: 100px;
    height: 36px;
    right: 0px;
    top: 0;
}